<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>005-子代选择器</title>
		<style>
			div.parent > div {
				color: red;
			}

			a > div {
				color: pink;
			}
		</style>
	</head>
	<body>
		<div class="parent">
			<div class="child1">子代1</div>
			<div class="child2">子代2</div>
			<div class="child2">子代3</div>
			<a href="#">
				<div>啦啦啦</div>
			</a>
		</div>
	</body>
</html>
